package cn.openea.perpartner.meily.web.service;

import cn.openea.perpartner.meily.web.entity.ActivityProducts;
import cn.openea.perpartner.meily.web.entity.dto.ProductDto;
import cn.openea.perpartner.meily.web.entity.vo.ProductInfo;
import cn.openea.perpartner.meily.web.entity.vo.ProductVo;
import com.alibaba.fastjson.JSONObject;
import com.github.yulichang.base.MPJBaseService;

import java.io.Serializable;
import java.util.List;

/**
 * (ActivityProducts)表服务接口
 *
 * @author Weird077
 * @since 2023-03-30 14:31:35
 */
public interface IActivityProductsService extends MPJBaseService<ActivityProducts> {

    List<ProductVo> selectProductList(ProductInfo product);

    ActivityProducts selectByProductId(Serializable id);

    String batchInsertProduct(ProductDto dto);

    boolean shelf(Long productId);

    boolean down(Long productId);

    boolean top(Long productId);

    boolean topCancel(Long productId);

    ActivityProducts findByGoodsNo(String goodsNo);

    List<JSONObject> selectProductCategory(String type);

    List<ProductVo> selectShelfProductList(ProductVo productVo);
}

